package cn.lili.modules.order.order.entity.enums;

public enum RankingAwardOrderStatusEnum {
    //订单状态: 1,待结算 2,已结算 3,已退单
    UN_SETTLE(1, "待结算"),
    SETTLE(2, "已结算"),
    REFUNDED(3, "已退单");

    public Integer code;
    public String name;

    RankingAwardOrderStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getByCode(Integer code) {
        RankingAwardOrderStatusEnum[] awards = values();
        RankingAwardOrderStatusEnum[] var3 = awards;
        int var4 = awards.length;

        for (int var5 = 0; var5 < var4; ++var5) {
            RankingAwardOrderStatusEnum actionEnumEnum = var3[var5];
            if (actionEnumEnum.code == code) {
                return actionEnumEnum.name;
            }
        }
        return null;
    }
}
